<?php
  if (isset($variables['output_data'])) {
    $rendered_rows = '';
    foreach($variables['output_data'] as $row => &$cols) {
      $to_render_cols = array();
      foreach($cols as $col => &$pris) {
        $this_single_col = '';
        foreach($pris as $pri => &$objects) {
          foreach($objects as $object_num => &$object) {
            $this_single_col .= '<div class="portals_view_indiv_portal">';
            $this_single_col .= $object['html'];
            $this_single_col .= '</div>';
          }
        }
        $to_render_cols[] = $this_single_col;
      }
      $rendered_row = theme('portals_cols',$to_render_cols);
      $rendered_rows .= '<div class="portals_view_rowsof_portal">';
      $rendered_rows .= $rendered_row;
      $rendered_rows .= '</div>';
    }
  }
  
  print $rendered_rows;
?>
